﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="city_s_forum.aspx.cs" Inherits="city_s_forum" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <p>

        <asp:HyperLink ID="HyperLink8" runat="server" NavigateUrl="index.aspx">Home</asp:HyperLink>
        &nbsp;/&nbsp;<asp:HyperLink ID="HyperLink2" runat="server">HyperLink</asp:HyperLink>
        &nbsp;/
        <asp:HyperLink ID="HyperLink3" runat="server">HyperLink</asp:HyperLink>
        &nbsp;/
    <asp:Label ID="Label1" runat="server" Text="Forum" 
        CssClass="big_title_grey"></asp:Label>
        <br />
    </p>
    <p>
        <asp:HyperLink ID="HyperLink9" runat="server">New topic</asp:HyperLink>
    </p>
    <p>
        <asp:GridView ID="GridView1" runat="server" BackColor="White" 
            BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
            ForeColor="Black" GridLines="Vertical" AutoGenerateColumns="False" 
            Width="80%">
            <FooterStyle BackColor="#CCCC99" />
            <RowStyle BackColor="#F7F7DE" />
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:Image ID="Image1" runat="server" 
                            ImageUrl='<%# Eval("user.profile_picture","user_imgs/1/{0}") %>' Width="50px" />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Author">
                    <ItemTemplate>
                        <asp:HyperLink ID="HyperLink1" runat="server" 
                            NavigateUrl='<%# Eval("create_user_no","user_profile.aspx?no={0}") %>' 
                            Text='<%# Eval("user.nickname") %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:HyperLinkField DataNavigateUrlFields="no" 
                    DataNavigateUrlFormatString="city_s_forum_show.aspx?no={0}" DataTextField="title" 
                    HeaderText="Subject" />
                <asp:BoundField DataField="view_amount" HeaderText="Views" />
                <asp:BoundField DataField="reply_amount" HeaderText="Replies" />
                <asp:BoundField DataField="last_post" HeaderText="Last_post" />
            </Columns>
            <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
            <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
    </p>
    <p>
    </p>
    <p>
    </p>
</asp:Content>

